package com.winning.pmph.entity;

import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;

import javax.persistence.Table;
import java.util.LinkedHashMap;
import java.util.List;

@Data
@Table(name = "KNOWLEDGE_UNIT")
public class KnowledgeUnit extends BaseEntity {
    /**
     *
     */
    private static final long serialVersionUID = 1L;
    public static final String TASK_EDITING_KID = "EDITING";
    /**
     * ID
     */
    @TableId
    private String id;
    /**
     * 知识单元名称
     */
    private String name;
    /**
     * 图书ID
     */
    private String bookId;
    @TableField(exist = false)
    private String bookName;
    @TableField(exist = false)
    private String bookIsbn;
    /**
     * 图书目录ID
     */
    private String bookCatalogItemId;
    /**
     * 图书目录路径
     */
    private String bookCatalogPath;
    /**
     * 生成知识ID;
     */
    private String knowledgeId;
    @TableField(exist = false)
    private boolean filterExistKnowledgeFlag;
    /**
     * 内容
     */
    private String content;
    /**
     * 类别
     */
    private String category;
    @TableField(exist = false)
    private String categoryVo;
    /**
     * 标签
     */
    private JSONObject tag;
    @TableField(exist = false)
    private String tagVo;
    /**
     * 自由标签
     */
    private JSONArray customTag;
    @TableField(exist = false)
    private String customTagVo;
    /**
     * 提交素材库时间
     */
    private String submitMaterialTime;
    @TableField(exist = false)
    private List<String> submitMaterialTimeRange;// 提交时间范围, 前后端传参使用;
    /**
     * 状态 0: 暂存, 1: 知识单元, 2: 素材库
     */
    private Integer status;
    @TableField(exist = false)
    private List<KnowledgeUnitField> knowledgeUnitFieldList;
}
